package com.example.demo.controller;

import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: huanhuan
 * @Date: 2023-06-15 16:20
 **/

@Controller
@RequestMapping("/mol")
public class MolController {

    @GetMapping("/viewer")
    public String viewer(
            Model model,
            @RequestParam(name = "molData", required = false) String molData){
        model.addAttribute("molData", molData);
        System.out.println(molData);


        return "viewer";
    }
}
